package repo

import (
	"album/model"
	"context"
	"listenboos-common/db"
)

type AlbumStatRepo interface {
	SaveTrackStat(ctx context.Context, conn db.DBConn, data *model.TrackStat) error
	FindTrackStatById(ctx context.Context, tid int64) (playStatNum, subscribeStatNum, buyStatNum, commentStatNum string, err error)
	DeleteTrackStat(ctx context.Context, conn db.DBConn, trackId int64) error
	FindByTrackId(ctx context.Context, id int64) (playStatNum, collectStatNum, praiseStatNum, commentStatNum string, err error)
	UpdateTrackNum(ctx context.Context, aid int64, tid int64, statType string, count int64) error
}
